const getters = {
  sidebar: (state) => state.app.sidebar,
  device: (state) => state.app.device,
  token: (state) => state.user.token,
  username: (state) => state.user.userInfo.name,
  visitedViews: (state) => state.tagsView.visitedViews,
  cachedViews: (state) => state.tagsView.cachedViews,
  points: (state) => {
    if (state.user.userInfo.roles) {
      return state.user.userInfo.roles.points
    } else {
      return []
    }
  }
};
export default getters;
